#ifndef CHEBYSHEV_5TH_256_H_
#define CHEBYSHEV_5TH_256_H_

#include <Arduino.h>
#include "mozzi_pgmspace.h"

/* table for waveshaper using chebyshev polynomials
*/

#define CHEBYSHEV_5TH_256_NUM_CELLS 256
CONSTTABLE_STORAGE(int8_t) CHEBYSHEV_5TH_256_DATA [] =
        {
	-127, -103, -81, -59, -39, -21, -4, 11, 26, 39, 52, 63, 
	73, 82, 90, 98, 104, 110, 114, 118, 121, 124, 126, 127, 
	127, 127, 127, 126, 124, 122, 120, 117, 113, 110, 106, 102, 
	97, 92, 87, 82, 77, 71, 66, 60, 54, 48, 42, 35, 
	29, 23, 17, 10, 4, -1, -7, -13, -19, -25, -31, -37, 
	-42, -48, -53, -58, -63, -68, -73, -78, -82, -86, -90, -94, 
	-98, -101, -105, -108, -111, -113, -116, -118, -120, -121, -123, -124, 
	-125, -126, -127, -127, -127, -127, -127, -127, -126, -125, -124, -123, 
	-121, -120, -118, -116, -114, -111, -109, -106, -103, -100, -97, -93, 
	-90, -86, -82, -79, -75, -70, -66, -62, -57, -53, -48, -44, 
	-39, -34, -29, -24, -19, -14, -9, -4, 0, 4, 9, 14, 
	19, 24, 29, 34, 39, 44, 48, 53, 57, 62, 66, 70, 
	75, 79, 82, 86, 90, 93, 97, 100, 103, 106, 109, 111, 
	114, 116, 118, 120, 121, 123, 124, 125, 126, 127, 127, 127, 
	127, 127, 127, 126, 125, 124, 123, 121, 120, 118, 116, 113, 
	111, 108, 105, 101, 98, 94, 90, 86, 82, 78, 73, 68, 
	63, 58, 53, 48, 42, 37, 31, 25, 19, 13, 7, 1, 
	-4, -10, -17, -23, -29, -35, -42, -48, -54, -60, -66, -71, 
	-77, -82, -87, -92, -97, -102, -106, -110, -113, -117, -120, -122, 
	-124, -126, -127, -127, -127, -127, -126, -124, -121, -118, -114, -110, 
	-104, -98, -90, -82, -73, -63, -52, -39, -26, -11, 4, 21, 
	39, 59, 81, 103, 
        };

#endif /* CHEBYSHEV_5TH_256_H_ */
